package ac.zlf.springmybatis.core.exception;

public class DeviceException
        extends RuntimeException {
    private int httpStatus = 0;
    private String description;

    public DeviceException(int httpStatus) {
        this.httpStatus = httpStatus;
    }

    public DeviceException(int httpStatus, String description) {
        super(String.format("Request Http Status: %d, Description: %s", new Object[]{Integer.valueOf(httpStatus), description}));
        this.httpStatus = httpStatus;
        this.description = description;
    }

    public DeviceException(String description) {
        this.description = description;
    }

    public DeviceException(String message, Throwable cause, int httpStatus) {
        super(message, cause);
        this.httpStatus = httpStatus;
    }

    public DeviceException(String message, Throwable cause) {
        super(message, cause);
    }

    public DeviceException(Throwable cause) {
        super(cause);
    }

    public int getHttpStatus() {
        return this.httpStatus;
    }

    public void setHttpStatus(int httpStatus) {
        this.httpStatus = httpStatus;
    }

    public String getDescription() {
        return this.description;
    }
}



/* Location:           D:\repository\cc\hwtech\core\2.0.1-school-SNAPSHOT\core-2.0.1-school-SNAPSHOT.jar

 * Qualified Name:     DeviceException

 * JD-Core Version:    0.7.0.1

 */
